package distributedbank.util;
import java.text.DecimalFormat;
import java.text.NumberFormat;
/**
 * Converts cents to displayable dollars
 * @author Bill
 */
public class CentsConverter
{
    private static final NumberFormat nf = new DecimalFormat(
            "###,###,###,###,###,##0.00" );
    /**
     * Converts cents to a displayable format
     * @param amount
     *            amount in cents
     * @return $xx,xxx.xx
     */
    public static String getAmountInDollarsWithSign( int amount ) {
        return "$" + nf.format( amount / 100.0 );
    }
}